import pandas as pd

def read_excel(path):
    """函数功能.读取excel

         函数功能说明.

         Args:
             path (String): 读取路径
             arg2 (str): arg2的参数说明

         Returns:
             xl_file:   文件内容

         """
    xl_file = pd.ExcelFile(path)
    return xl_file

def write_excel(path,df):
    """函数功能.写excel

           函数功能说明.

           Args:
               path (int): 写入路径
               df (str): 流

           Returns:
               void:

           """
    xl_writer = pd.ExcelWriter(path, engine='xlsxwriter')
    df.to_excel(xl_writer, 'Sheet0')
    xl_writer.save()

'''if __name__ == '__main__':
    xl_file = read_excel('D:\DOWNLOAD\粉丝老带新报表_2020_11_3.xlsx')
    xl_file.parse('1')
    print(xl_file)'''